I am debugging someone else's code in which they are checking the value of an attribute that doesn't always exist in a module. What is the proper way to determine if an attribute exists before getting its value? I've tried using:
if (currObj."Attribute Name" != null) but I get an "unknown Object attribute" error.
Chris Christopher Cote - Tue Jul 16 12:46:36 EDT 2019 |
Re: Checking for attribute existence In the current module if (exists(attribute "Attribute Name")) In any module m AttrDef ad = find(m, "Attribute Name") if (!null ad) |